#!/bin/bash

nums=$1
[ -z "$nums" ] && nums=5000
echo $nums 
i=1
while [ $i -le $nums  ]; do
    echo -n  "$[ $RANDOM % $nums + 1 ] "
    let i++
done
echo
echo 0 
